package com.hzw.saas.web.storage.param;

import java.io.Serializable;
import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author zzl
 * @since 02/28/2021
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("重命名资源参数")
public class ResourceRenameParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资源ID
     */
    @ApiModelProperty(value = "资源ID", position = 1, required = true)
    @NotBlank(message = "资源ID不可为空")
    private String pid;

    /**
     * 资源名称
     */
    @ApiModelProperty(value = "资源名称", position = 4)
    @NotBlank(message = "资源名称不可为空")
    private String name;


}
